<?php
$page_title="Manage Sevadhari Development Program ";
include("includes/header.php");

$devprg_id=$_GET["devprg_id"];
$mode=$_GET["mode"];


if($mode=="edit") 	$devprg_info=@array_pop(qry_data("select * from bkitc_seva_dev_prg where sevadev_prg_id=".$devprg_id));
if($mode=="del"){
	exec_qry("update bkitc_seva_dev_prg set rec_status=0 where sevadev_prg_id=".$devprg_id);//Soft Delete
	header("location:sevadevprg_list.php");
}

?>	
		
<div class="fleft">
<ul class="subMenu">
<li><a href="edit_sevadevprg.php?mode=add">Add New </a></li>
<li><a href="sevadevprg_list.php?mode=result">Back to Program List </a></li>
</ul>
</div>
<div class="cleardiv"></div>
	<div style="width:100%" class="content_bg">
	<form method="post" action="edit_sevadevprg_pro.php?devprg_id=<?=$_GET["devprg_id"]?>" > 
		<table class="voip_form" width="600"  cellpadding="8" border="0" cellspacing="3"> 
			<tr>
				<td  height="10" style="padding:2px;margin:2px" colspan="2" align="right"><small style="font-size:11px"> <i><?=ast()?>  Required fields.</i></small></td>
			</tr>
			<tr >
				<td width="250" class="frmLabel">  Title <?=ast()?></td>
				<td > <input type="text" class="txtbox"  name="devprg_title" size="60" value="<?=$devprg_info["devprg_title"]?>"> </td>
			</tr>
		
			<tr>
				<td colspan="2">
			
			
			
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Description <?=ast()?><br/><br/>
				 <textarea class="txtarea"  id="devprg_desc" rows="2" cols="90" name="devprg_desc" style="width:800px;height:100px;"><?=$devprg_info["devprg_desc"]?></textarea> </td>
			</tr>
			<tr>
				<td width="260" class="frmLabel"> Program Date <?=ast()?></td>
				<td > 
				
					<script language="javascript">
					<?
						if($devprg_info["devprg_date"]=="") 
							echo "DateInput('devprg_date', true, 'YYYY-MM-DD')";
						else
							echo "DateInput('devprg_date', true, 'YYYY-MM-DD','".$devprg_info['devprg_date']."')";
					?>
					</script>
				
				</td>
			</tr>
			
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Address <?=ast()?><br/><br/>
				 <textarea class="txtarea"  id="devprg_address" rows="4" cols="110" name="devprg_address" ><?=$devprg_info["devprg_address"]?></textarea> </td>
			</tr>
			
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Remarks <?=ast()?><br/><br/>
				 <textarea class="txtarea"  id="devprg_remark" rows="4" cols="110" name="devprg_remark" ><?=$devprg_info["devprg_remark"]?></textarea> </td>
			</tr>
			
	
			<tr bgcolor="#fff" style="height:50px;margin:0px;padding:0px;">
				
				<td  style="margin:0px;padding:2px;" align="right" colspan="2">
				<input type="submit" class="button"  value="Save Info">&nbsp;
				<input class="button" type="reset">
				<input onclick="location.href='edit_sevadevprg.php'"  type="button" class="button" value=" Back to Sevadhari List">
				</td>
			</tr>
			
		</table>
	</form>
</div>

<div style="margin-bottom:40px">

</div>
<link rel="stylesheet" href="includes/wysiwyg.css" type="text/css">
<script type="text/javascript" src="includes/scripts/wysiwyg.js"></script>
<script type="text/javascript" src="includes/scripts/wysiwyg-settings.js"></script>
		<!-- 
			Attach the editor on the textareas
		-->
		<script type="text/javascript">
			
			// Use it to attach the editor directly to a defined textarea
			WYSIWYG.attach('devprg_desc'); // default setup
			
		</script>

<? include("includes/footer.php");?>
